<?php

namespace App\Observers;

use App\Model\Comment;
use App\Notifications\CommentNotify;

class CommentObserver
{
    public function created(Comment $comment){
        $comment->belongsModel->user->notify(new CommentNotify($comment));
    }
}
